.transmission-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* 卡片样式 */
.card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.page-header {
    margin-bottom: 20px;
}

.page-header h1 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #333;
}

.control-buttons {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.search-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.input-group {
    display: flex;
    flex: 1;
    min-width: 300px;
}

.form-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.form-select {
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    background-color: white;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-info {
    font-size: 16px;
    color: #666;
    min-width: 80px;
    text-align: center;
}

.stats-section {
    margin-bottom: 20px;
    padding: 15px 20px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.summary-text {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.tasks-container {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 20px;
}

.loading-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.error-message {
    padding: 20px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    margin: 15px;
}

.empty-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 16px;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin: 20px;
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tasks-table {
    width: 100%;
    border-collapse: collapse;
}

.tasks-table th {
    background-color: #f8f9fa;
    padding: 15px 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 3px solid #007bff;
    position: sticky;
    top: 0;
    z-index: 10;
}

.tasks-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: top;
}

.tasks-table tr {
    transition: all 0.2s ease;
}

.tasks-table tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.001);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.task-name {
    font-weight: 500;
    color: #007bff;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    padding: 4px 0;
}

.task-name:hover {
    color: #0056b3;
    text-decoration: none;
    transform: translateX(3px);
}

/* 进度条样式 */
.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-bar {
    height: 100%;
    background-color: #28a745;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    text-align: center;
}

.status-downloading {
    background-color: #e3f2fd;
    color: #1976d2;
}

.status-seeding {
    background-color: #e8f5e9;
    color: #388e3c;
}

.status-paused {
    background-color: #fff3e0;
    color: #f57c00;
}

.status-completed {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.status-error {
    background-color: #ffebee;
    color: #c62828;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background-color: #007bff;
    color: white;
    border-radius: 0 6px 6px 0;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(108, 117, 125, 0.3);
}

.btn-success {
    background-color: #28a745;
    color: white;
}

.btn-success:hover {
    background-color: #218838;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

.btn-warning {
    background-color: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background-color: #e0a800;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 193, 7, 0.3);
}

.btn-default {
    background-color: #e9ecef;
    color: #333;
}

.btn-default:hover {
    background-color: #dee2e6;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(233, 236, 239, 0.5);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    border-radius: 8px;
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #dee2e6;
    margin-bottom: 20px;
}

.modal-header h2 {
    margin: 0;
    font-size: 24px;
    color: #333;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    margin-bottom: 20px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}

/* 表单元素样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.25);
}

.form-checkbox {
    margin-right: 8px;
    transform: scale(1.2);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-group {
        min-width: auto;
    }
    
    .pagination-controls {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .transmission-container {
        padding: 10px;
    }
    
    .modal-content {
        margin: 5% auto;
        width: 95%;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

/* 表格响应式处理 */
@media (max-width: 1024px) {
    .tasks-table {
        display: block;
        overflow-x: auto;
    }
}

/* 选中行样式 */
.selected-row {
    background-color: #e3f2fd !important;
}

/* 复选框样式 */
.checkbox-cell {
    text-align: center;
}

.checkbox-custom {
    transform: scale(1.3);
    cursor: pointer;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.action-btn {
    padding: 5px 10px;
    font-size: 12px;
}

/* 任务信息展示 */
.task-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 速度显示 */
.speed-display {
    font-family: monospace;
    font-size: 13px;
    color: #666;
}